﻿//----------------------------------------------------------------
// <copyright>
//    Top Do ---TOP API DEMO 示例系列
//    CLR Version: 2.0.50727.1434
//
//    By 淘宝旺旺ID: 幻影时空
//    Email:visionspace@st-soft.cn
//    Copyright (C) SpaceTime SoftWare , All rights reserved (www.st-soft.cn).
//
//    项目引用 需 TopSpace.Bll 类
// </copyright>
//----------------------------------------------------------------



using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Top.Api;
using Top.Api.Request;
using Top.Api.Response;
using JCW.Common;

public partial class Main : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //Response.Redirect("Private/ItemRecommend.aspx");

        ITopClient client = new DefaultTopClient(Config.ServerURL, Config.Appkey, Config.Secret);
        UserSellerGetRequest req = new UserSellerGetRequest();
        req.Fields = "nick,sex";
        UserSellerGetResponse response = client.Execute(req, Client.Session);
        
        Transfers tf = new Transfers();
        tf.AddColumn("user", response);
        Response.Write(tf.ToJson());
        //Response.Write(response.Body);
    }
}
